
#pragma once


#define	USB_SOUND_STR		_T("USB Headphone Set")


#define	MSG_STATE		0x0001
#define	MSG_SPK			0x0002
#define	MSG_MIC			0x0004
#define	MSG_COM			0x0008
#define	MSG_PHONE		0x0010
#define	MSG_CALLSTATE	0x0020
#define	MSG_FROM		0x0040
#define	MSG_TO			0x0080
#define	MSG_CALLTIME	0x0100
#define	MSG_ALL			0xFFFF

typedef struct {
	DWORD		dwSize;

	TCHAR		szProgID[32+1];
	DWORD		dwState;
	int			nSpk;
	int			nMic;
	int			nCom;
	TCHAR		szPhone[12+1];
	TCHAR		szCallState[32+1];
	TCHAR		szFrom[32+1];
	TCHAR		szTo[32+1];
	SYSTEMTIME	stCallStart;
	DWORD		dwCallTime;
} COPYDATA, *PCOPYDATA;


#define	UM_M2C_INITSTATE	(WM_USER + 0x100)
#define	UM_M2C_SHOWWINDOW	(WM_USER + 0x101)
#define	UM_M2C_DESTORY		(WM_USER + 0x102)
